package com.bw.video2110.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class ViewPagerAdapter (list: List<Fragment>,fragmentManager: FragmentManager): FragmentPagerAdapter(fragmentManager){
    val list: List<Fragment> = list

    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(position: Int): Fragment {
        return list[position]
    }
}